package com.jolink.omiis.wechat.http;

import java.util.Map;

import org.apache.http.HttpEntity;

/**
 * HTTP 通讯接口
 * 
 * @author WangYanqing
 *
 */
public interface IHttpHandler<T> {

	/**
	 * @param uri
	 * @param reqParams
	 * @return
	 */
	T get(String uri, String reqParams);

	/**
	 * @param uri
	 * @param reqParams
	 * @return
	 */
	T get(String uri, Map<String, String> reqParams);

	/**
	 * @param uri
	 * @param reqParams
	 * @param httpEntity
	 * @return
	 */
	T post(String uri, String reqParams, String httpEntity);

	/**
	 * @param uri
	 * @param reqParams
	 * @param httpEntity
	 * @return
	 */
	T post(String uri, Map<String, String> reqParams, String httpEntity);

	T post(String uri, String reqParams, HttpEntity httpEntity);

	T post2(String uri, String reqParams, HttpEntity httpEntity);

}
